import wtforms

from validators import BaseForm, BasePageForm


class SchemaGroupForm(BaseForm):
    """
    模型分组表单校验类
    """
    id = wtforms.IntegerField()
    name = wtforms.StringField("分组名称", [wtforms.validators.DataRequired(message="分组名称不能为空")])
    code = wtforms.StringField("唯一编码", [wtforms.validators.DataRequired(message="唯一编码不能为空")])
    icon = wtforms.StringField("图标")
    sort = wtforms.StringField("排序")
    remark = wtforms.StringField("备注")
    createUser = wtforms.StringField("创建用户")
    updateUser = wtforms.StringField("更新用户")


class SchemaGroupPageForm(BasePageForm):
    """
    模型分组分页校验类
    """
    pass
